package com.ruoyi.board.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 留言表对象 message_board
 * 
 * @author ruoyi
 * @date 2024-06-29
 */
public class MessageBoard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 留言标识 */
    private Long MessageId;

    /** 发送者ID */
    @Excel(name = "发送者ID")
    private Long SenderId;

    /** 发送者类型 */
    @Excel(name = "发送者类型")
    private String SenderType;

    /** 留言内容 */
    @Excel(name = "留言内容")
    private String MessageContent;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date CreatedDate;

    /** 留言公开 */
    @Excel(name = "留言公开")
    private Boolean IsPublic;

    public void setMessageId(Long MessageId) 
    {
        this.MessageId = MessageId;
    }

    public Long getMessageId() 
    {
        return MessageId;
    }
    public void setSenderId(Long SenderId) 
    {
        this.SenderId = SenderId;
    }

    public Long getSenderId() 
    {
        return SenderId;
    }
    public void setSenderType(String SenderType) 
    {
        this.SenderType = SenderType;
    }

    public String getSenderType() 
    {
        return SenderType;
    }
    public void setMessageContent(String MessageContent) 
    {
        this.MessageContent = MessageContent;
    }

    public String getMessageContent() 
    {
        return MessageContent;
    }
    public void setCreatedDate(Date CreatedDate) 
    {
        this.CreatedDate = CreatedDate;
    }

    public Date getCreatedDate() 
    {
        return CreatedDate;
    }
    public void setIsPublic(Boolean IsPublic) 
    {
        this.IsPublic = IsPublic;
    }

    public Boolean getIsPublic() 
    {
        return IsPublic;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("MessageId", getMessageId())
            .append("SenderId", getSenderId())
            .append("SenderType", getSenderType())
            .append("MessageContent", getMessageContent())
            .append("CreatedDate", getCreatedDate())
            .append("IsPublic", getIsPublic())
            .toString();
    }
}
